<template>
  <div class="back-top" @click="backtop"></div>
</template>

<script>
export default {
  name: "BackTop",
  setup(props, {emit}) {
    return {
      backtop: () => {
        emit('bTop');
      }
    }
  },
}
</script>

<style scoped>
.back-top {
  width: 39px;
  height: 39px;
  background: #FCFCFC url("~assets/image/up.png") no-repeat center center;
  position: fixed;
  bottom: 80px;
  right: 30px;
  box-shadow: 3px 3px 5px #888888;
  z-index: 20;
  border-radius: 50%;
}
</style>